<script type="text/javascript"> 
function insertHtml(nums) {
	var strs=$('.stylemode'+nums).html();
	ueditor.execCommand('insertHtml',strs);
	hide_nav($('#editmodes'),$('#fullbg1'));
}
function showEditMode(){
	$.get("{:iurl('index/editor/index')}",function(d){
		$('#editmodes').html(d);
	});
	show_nav($('#editmodes'),$('#fullbg1'));
	$('#fullbg1').height($(window).height());
	$('#editmodes').height($(window).height());
}
function show_nav(node,fullbg){
	fullbg.css({'display':'block'}).stop().animate({'opacity':.6},500,function(){
		node.stop().animate({'width':'300px','padding':'0px 10px 0 10px'},300);
	});
}
function hide_nav(node,fullbg){
	fullbg.animate({'opacity':0},300,function(){
		$(this).css({'display':'none'});
	});
	setTimeout(function(){
		node.html('');
		node.stop().animate({'width':'0px','padding':'0px 0px 0 0px'},300);
	}, 500)
}

function add_other_mv(){
	layer.prompt({
					title: '请输入优酷或腾讯视频网址',
					formType: 0
			   }, function(value){
				 layer.closeAll();
				 var str = '<br>[iframe_mv]'+value+'[/iframe_mv]<br><br>';
				 ueditor.execCommand('insertHtml',str);
			});
}

function add_topic(){
	layer.open({
		type:2,
		title: false,
		area: ['800px', '600px'],
		content: "{:murl('member/quote/index')}?type=bbs&uid=0",
    });
}
function insert_topic(content){
	ueditor.execCommand('insertHtml',"<br>"+content+"<br>");
}
</script>

<style type="text/css">
.slectEditMode{
	padding:5px 0 5px 0;
	margin-top:5px;
}
.slectEditMode a{
	display:inline-blodk;
	padding:5px 10px;
	background:green;
	border-radius:5px;
	color:#FFF;
}
.fullbg { 
	background-color:#000; 
	opacity:0; 
	top:0; 
	left:0; 
	width:100%; 
	height:100%; 
	z-index:1001; 
	position:fixed;
	display:none;
}
#editmodes{ 
	position:fixed; 
	top:0;  
	right:0; 
	z-index:1002; 
	height:100%;
	width:0px;
	overflow:auto;
	overflow-x:hidden;
	scrollbar-face-color: #FFFFFF;
	scrollbar-shadow-color: #eee;
	scrollbar-highlight-color: #eee;
	scrollbar-3dlight-color: #FFFFFF;
	scrollbar-darkshadow-color: #FFFFFF;
	scrollbar-track-color: #FFFFFF;
	scrollbar-arrow-color: #D2E5F4; 
	background:#FFF;
}
</style>
<div id="editmodes"></div>
<div class="fullbg" id="fullbg1" onclick="hide_nav($('#editmodes'),$('#fullbg1'))"></div>

<!--<div class="slectEditMode"><a href="javascript:showEditMode();">内容布局模板</a></div>-->